package com.cunjin.grade.dao;

import java.util.List;
import java.util.Map;

import com.cunjin.base.dao.BaseDao;
import com.cunjin.dormitory.entity.DormitoryEntity;
import com.cunjin.grade.entity.GradeEntity;

public interface GradeDao extends BaseDao<GradeEntity> {

	/**
	 * 根据名字查询班级
	 * @param grateName 更据班级名字查询班级
	 * @return
	 * @throws Exception
	 */
	GradeEntity selectByName(String grateName) throws Exception;

	List<DormitoryEntity> myqueryOk() throws Exception;

	/**
	 * eauy分页 
	 * @param pages 分页条件==searchName 搜索关键词  before页码数   after每页显示的条数
	 * @return
	 */
	List<GradeEntity> myqueryByPage(Map<String, Object> pages);

	/**
	 * 由关键词搜索出来的条数
	 * @param pages
	 * @return
	 */
	int findAllByName(Map<String, Object> pages);
}